package com.zoweunion.mechanic.service.base;

import java.util.Map;

import com.zoweunion.mechanic.model.ResponseBean;

public interface AuthService {

	/**
	 * 分页条件查询
	 * @param reqMap 
	 * @return
	 */
	Map<String, Object> getPageQuery(Map<String, Object> reqMap);

	/**
	 * 新增授权
	 * @param reqMap
	 */
	int  insertAuth(Map<String, Object> reqMap);

	
	/**
	 * 更新授权  包括禁用 删除 恢复
	 * @param reqMap
	 */
	int update(Map<String, Object> reqMap);

	/**
	 * 根据uid查询授权
	 * @param reqMap
	 * @return
	 */
	Map<String, Object> getAuthByUid(Map<String, Object> reqMap);

	/**
	 * 修改车主授权
	 * @param reqMap
	 */
	int editCreditLimit(Map<String, Object> reqMap);

	/**
	 * 判断改价是否通过并创建改价日志
	 * @param reqMap
	 * @return
	 */
	ResponseBean editOrderPrice(Map<String, Object> reqMap);

	String selectUserId(Map<String, Object> reqMap);

	String getAuthRoleByUseraccount(String user_account);

	int updateUserRemainingSum(Map<String, Object> reqMap);

	/**
	 * 根据UserAccount查询授权
	 * @param reqMap
	 * @return
	 */
	Map<String, Object> getAuthByUserAccount(Map<String, Object> reqMap);
}
